package com.zhousb.deviceManager.model.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@HeadFontStyle(fontHeightInPoints = 10,fontName = "微软雅黑")
@ContentFontStyle(fontHeightInPoints = 10,fontName = "微软雅黑")
public class ExportOrderLogDto {
    @ColumnWidth(22)
    @ExcelProperty(value = "订单编码",order = 1)
    private String orderCode;
    @ColumnWidth(10)
    @ExcelProperty(value = "下单人",order = 2)
    private String orderUserName;
    @ColumnWidth(10)
    @ExcelProperty(value = "寄件人",order = 3)
    private String senderName;
    @ColumnWidth(14)
    @ExcelProperty(value = "寄件人电话",order = 4)
    private String senderTel;
    @ColumnWidth(16)
    @ExcelProperty(value = "寄件人地址",order = 5)
    private String senderAddress;
    @ColumnWidth(10)
    @ExcelProperty(value = "收件人",order = 6)
    private String consigneeName;
    @ColumnWidth(14)
    @ExcelProperty(value = "收件人电话",order = 7)
    private String consigneeTel;
    @ColumnWidth(16)
    @ExcelProperty(value = "收件人地址",order = 8)
    private String consigneeAddress;
    @ColumnWidth(10)
    @ExcelProperty(value = "订单状态",order = 9)
    private String orderStatus;
    @ColumnWidth(10)
    @ExcelProperty(value = "在途订单",order = 10)
    private String afloatStatus;
    @ColumnWidth(10)
    @ExcelProperty(value = "销售数量",order = 11)
    private Integer quantity;
    @ColumnWidth(22)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "下单时间",order = 12)
    private LocalDateTime createTime;
}
